package kubayaxi.video.client.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.tags.Tags;
import kubayaxi.video.service.base.common.request.BaseRequest;
import kubayaxi.video.service.base.common.vo.CommonPageResult;
import kubayaxi.video.service.base.util.common.Asserts;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Api(tags = "客户端【测试-测试桩】Controller")
public class TestController {
    @ApiOperation("haha")
    @PostMapping("/haha")
    public String haha(@RequestBody BaseRequest<String> input){
        String data = input.getData();
        Asserts.isNotBlank(data,"参数为空");
        return data;
    }
}
